<fieldset>
    <?php
    echo $form->create('Representative');
    if (isset($id)) {
        echo $form->input("Representative.proposer_id", array('value' => $id));
    } else {
        echo $form->input("Proposer.id");
    }
    echo $form->input("Representative.nombres");
    echo $form->input("Representative.apellidos");
    echo $form->input("Representative.cedula");
    echo $ajax->submit('Guardar', array('url' => array('controller' => 'Representatives', 'action' => 'add'), 'update' => 'content', 'complete' => 'cargar()', 'loading' => "$('#loader').show();", 'loaded' => "$('#loader').hide();cargar();"));
    echo $form->end();
    ?>
</fieldset>
